<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
    <!DOCTYPE html>
    <html>

    <head>
        <meta charset="UTF-8">
        <title>登录</title>
       <link rel="stylesheet" href="login.css" />
       <style type="text/css">
body{
    background-image: url('../img/MoonFarSide.jpg'); /* 指定背景图片的路径 */
    background-size: cover; /* 背景图片覆盖整个页面 */
    background-position: center; /* 背景图片居中 */
}

</style>
    </head>
    <body>
         <form action="cookerCheck.jsp" method="post">
            <h2>厨师登录</h2>
            <% if (request.getAttribute("error") != null) { %>
        <p style="color: red;"><%= request.getAttribute("error") %></p>
    <% } %>
        <div>
            <label for="username">用户名:</label>
            <input type="text" id="username" name="username" required>
        </div>
        <div>
            <label for="password">密码:</label>
            <input type="password" id="password" name="password" required>
        </div>
        <div>
            <input type="submit" value="登录">
        </div>
    </form>

    </body>

    </html>